<!--复制-->
<form id="info_form" action="{:U('Collection/colCopy')}" method="post" enctype="multipart/form-data">
    <div class="dialog_content">
        <table width="100%" class="table_form">
            <input type="hidden" name="nodeid" value="{$id}"/>
            <tr>
                <td width="120">原采集点名：</td>
                <td>
                   {$name}
                </td>
            </tr>
            <tr>
                <td width="120">新采集点名：</td>
                <td>
                    <input type="text" name="name" id="name"  class="input-text" value="" />
                </td>
            </tr>
        </table>
    </div>
</form>
<script>
    $(function(){
        $.formValidator.initConfig({formid:"info_form",autotip:true});
        $("#name").formValidator({onshow:'请填写采集点名称',onfocus:'请填写采集点名称'}).inputValidator({min:1,onerror:'请填写采集点名称'});
        $('#info_form').ajaxForm({success:complate,dataType:'json'});
        function complate(result){
            if(result.status == 1){
                $.dialog.get(result.dialog).close();
                $.pinphp.tip({content:result.msg});
                window.location.reload();
            } else {
                $.pinphp.tip({content:result.msg, icon:'alert'});
            }
        }
    });
</script>